{% import "CustomExamBundle::macro_ext.html.twig" as web_macro_ext %}
<div class="paperDetails">
    <div class="page cf" style="height:60px;">
        <a class="all_in  addAllPaper btn btn-info btn-sm pull-right">
            <span>全部加入</span>
        </a>
        <p class="fr">
            <div class="pagination fr">
                 {{ web_macro_ext.paginator(paginator) }}
            </div>
        </p>
        <p class="fl">
            共计<span class="bold">{{ paginator.getItemCount() }}</span>题
        </p>
    </div>
   {% for question in questions %}
        <div data-question_id="{{ question.id }}" class="question-box">
            <div class="question-title cf">
                <a data-question_id="{{ question.id }}" class="control-btn {{ question.isSelected ? "add-true" : "add-false" }} fr">
                    <span class="cBtnNormal btn btn-info btn-sm pull-right">
                        <i>加入试卷</i>
                    </span>
                    <em>
                        <!-- <input value="已加入" type="button" class="in fl" disabled='disabled'> -->
                        <b class="cBtnGrey btn btn-default btn-sm"><i>移除试卷</i></b>
                    </em>
                </a>
                <dl>

                </dl>
            </div>
            <div class="question-content">
             {{ render(controller('CustomExamBundle:CourseQuestionManageExt:paperQuestionPreview', {id:question.id})) }}   					
            </div>
        </div>
     {% endfor %}

    <div class="page cf" style="height:60px;">
        <a class="all_in cBtnNormal addAllPaper fr">
            <span>全部加入</span>
        </a>
        <p class="fr">
            <div class="pagination fr">
                 {{ web_macro_ext.paginator(paginator) }}
            </div>
        </p>
        <p class="fl">
            共计<span class="bold">{{ paginator.getItemCount() }}</span>题
        </p>
    </div>
</div>